import { EnvEnums, env } from "../index";

// export const imgurl = "http://127.0.0.1:8080/static/images/";
export const imgurl = "/static/images/";
export let urls = {
  requestURL: "https://sf.21bmw.com",
};
if (env === EnvEnums.release) {
  urls = {
    requestURL: "https://sf.21bmw.com",
  };
} else {
  urls = {
    requestURL: "https://sf.21bmw.com",
  };
}
// 枚举接口类型--  key -> value
export const serverTypes = {
  base: "requestURL",
};
// 枚举接口类型--  value -> key
export const serverSource = {
  requestURL: "base",
};
// uniapp   运行 development 发行 production
export const isBuild = process.env.NODE_ENV === "production";

// refreshToken  storage key
export const REFRESH_TOKEN = "refreshToken";

// 请求超时时间 20s
export const requestTimeoutTime = 20000;

//判断是否是app运行环境
// #ifdef APP-PLUS
export const isApp = true;
// #endif
// #ifndef APP-PLUS
export const isApp = false;
// #endif

// 区分是否是开发环境
export const isDev = process.env.NODE_ENV === "development";
